package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.pojo.Role;
import com.itheima.pojo.User;

import java.util.List;

public interface UserService {
    User findByUsername(String username);

//以下为新增
    PageResult findPage(Integer currentPage, Integer pageSize, String queryString);

    List<Role> findAllRole();

    void add(Integer[] roleIds, User user);

    List<Integer> findRoleIdsByUserId(Integer id);

    void edit(Integer[] roleIds, User user);

    Integer testUsername(String username);

    void deleteById(Integer id);
}
